<template>
  <Modal v-model="activityPop" width="36" :mask-closable="false" class-name="vertical-center-modal">
    <div slot="header" class="head-title">{{ $t('event.eventDetails') }}</div>
    <div class="detail-content">
      <div class="label">{{ $t("event.eventOverview") }}</div>
      <div class="sub-title">
        {{ $t('event.eventOverviewSub1') }}
        {{ $t('event.eventOverviewSub2') }}
      </div>
      <div class="label">{{ $t('event.discountDetails') }}</div>
      <div class="sub-title">
        {{ $t('event.discountDetailsSub1') }}
      </div>
      <div class="sub-title">
        • All products on event page qualify for the "¥50 off per ¥300" deal
      </div>
      <div class="sub-title">
        {{ $t('event.discountDetailsSub3') }}
      </div>
      <div class="label">Event Period</div>
      <div class="sub-title">
        {{ $t('event.eventPeriodSub') }}
      </div>
      <div class="label">{{ $t('event.aboutDouble11') }}</div>
      <div class="sub-title">
        {{ $t('event.aboutDouble11Sub') }}
      </div>
      <div class="label">{{ $t('event.productSource') }}</div>
      <div class="sub-title">
        {{ $t('event.productSourceSub') }}
      </div>
      <div class="label">{{ $t('event.About100buy') }}</div>
      <div class="sub-title">
        {{ $t('event.About100buySub') }}
      </div>
    </div>
    <div slot="footer" class="footer-sty">
      <div class="btn" @click="activityPop = false">🎉 {{ $t('event.fantasticShopping') }}</div>
    </div>
  </Modal>
</template>
<script>
export default {
  data() {
    return {
      activityPop: false
    }
  },
  methods: {
    open() {
      this.activityPop = true;
    }
  }
}
</script>

<style lang="less" scoped>
:deep(.ivu-modal-content) {
  border-radius: 18px;
  position: relative;

  &::before {
    /* 1 */
    display: block;
    content: '';
    border-radius: 18px;
    border: 8px solid transparent;
    background: linear-gradient(271deg, rgba(254, 49, 97, 1), rgba(53, 231, 207, 1)) border-box;
    /* 2 */
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    /* 3 */
    -webkit-mask-composite: xor;
    /* 4 */
    mask-composite: exclude;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

:deep(.ivu-modal-header) {
  border: none;
  padding: 28px 32px;
}

:deep(.ivu-modal-body) {
  padding: 0 32px;
}

:deep(.ivu-modal-footer) {
  border: none;
  padding: 28px 32px;
}

:deep(.ivu-modal-close) {
  position: absolute;
  top: 20px;
  right: 26px;
}

:deep(.ivu-modal-close .ivu-icon-ios-close) {
  color: #333333;
  font-size: 64px;
  font-weight: 800;
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .head-title {
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 32px;
    color: #1E1714;
    line-height: 38px;
  }

  .detail-content {
    .label {
      font-family: Open Sans, Open Sans;
      font-weight: 600;
      font-size: 20px;
      color: #1E1714;
      line-height: 28px;
      margin-top: 24px;
    }

    .sub-title {
      font-family: Open Sans, Open Sans;
      font-weight: 400;
      font-size: 16px;
      color: #AEB0B9;
      line-height: 21px;
      margin-top: 8px;
    }
  }

  .footer-sty {
    display: flex;
    align-items: center;
    justify-content: center;

    .btn {
      z-index: 99;
      font-family: Open Sans, Open Sans;
      font-weight: 600;
      font-size: 20px;
      color: #FFFFFF;
      line-height: 23px;
      padding: 12px 28px;
      background: #1E1714;
      border-radius: 44px;
      cursor: pointer;
    }
  }
}
</style>
